home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
AlexNeXTSTEPSource
/
Source
/
Chapter3_OOD
/
ShapeArea
/
Rectangle.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
229b
|
24 lines
#import "Rectangle.h"
@implementation Rectangle
-initHeight:(float)h width:(float)w
{
[super init];
height = h;
width = w;
return self;
}
-(float)calcArea
{
return height * width;
}
-free
{
return [super free];
}
@end